<?php

namespace app\services\report;

use app\dao\report\ReportDao;
use app\services\BaseServices;

class ReportServices extends BaseServices
{
    /**
     * UserServices constructor.
     * @param ReportDao $dao
     */
    public function __construct(ReportDao $dao) {
        $this->dao = $dao;
    }

    public function getSumList(array $where, string $field = '*', int $page = 1, int $limit = 10)
    {
        return $this->dao->getList($where, $field, $page, $limit);
    }

    public function getSumCount(array $where)
    {
        return $this->dao->getCount($where);
    }

}